<template>
  <div class="home-container">
    <div class="register-content">
      <!-- 认证 -->
      <h1 class="title">国家农产品质量安全追溯管理平台</h1>

      <div class="register-btn" @click="toRegister">
        立即认证
      </div>
    </div>

    <div class="news-content">
      <!-- 部分新闻展示 -->
      <news></news>
    </div>

    <div class="product-content">
      <!-- 部分农产品展示 -->
    <products></products>
    </div>

    <div class="partner-introduce">
      <!-- 部分合作伙伴 -->
      <partners></partners>
    </div>
  </div>
</template>

<script setup>
import news from './news/index.vue';
import products from './products/index.vue';
import partners from './partners/index.vue';
import { useLocalStorage } from '@vueuse/core';
import { useRouter } from 'vue-router';
const userInfo = useLocalStorage('gov-demo-userInfo');
const router = useRouter();
const toRegister = () => {
  router.push({
    path: '/certification'
  })
};
</script>

<style lang="scss" scoped>
.home-container{
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;

  &::-webkit-scrollbar {
    display: none;
  }
  .register-content{
    width: 100%;
    height: calc(100vh - 60px);
    background: url(../assets/images/bg.png) center bottom no-repeat;
    background-size: cover;
    position: relative;
    margin-bottom: 40px;
    .title{
      position: absolute;
      top: 320px;
      left: 180px;
      font-weight: 700;
      font-size: 40px;
    }

    .register-btn{
      position: absolute;
      top: 480px;
      left: 980px;
      font-size: 20px;
      width: 200px;
      height: 60px;
      line-height: 60px;
      background: #67c23a;
      color: #fff;
      border-radius: 40px;
      text-align: center;
      cursor: pointer;
    }
  }
}
</style>
